correction for keypressed in output area