Complete necessary input and improve loading sequence

Keyboard only for now
Only load libs if necessary