Fix bug with KeyEvent key values on lowercase characters