Some amd64 prep, new keyboard function, shell uses new function