changed design to keydown format