Split into keyb and terminal