Include keyboard.h before frame.h.