Implemented KeyCode

I implemented the KeyCode enum for better readability and support
(thanks to kubuto2 for explaining that the enum items for KeyCode
represent their byte representations).