added keybaord events to h file