Updates keyboard handling to use keyCode