What process 2 event keys?

If pressed up- and right-keys, sprite go up-right. Sorry for my english.