Added key controller class
basic code for event controller