Improved to receive the 'keyup' event.