Made keyboard detection work!