Creating KeyListener and KeyEvent