cleaning key press code