remove duplicate KeyHandlerPress logic