Display and input event handling logic completed.