Implemented KeyCode

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