Basic keyboard support, and a DEFINE_MUTEX macro.