Magic numbers are quite annoying
undo that
listen for keydown instead
code corrections
minor code restructure