x86 added keyboard handling.