Make same key pressed event recorded once

Previous commit is not working.
This one fix it.