Include keyboard.h before frame.h, not after it.