removed unnecessary method
added listening to key events