Fix function keys, colours and graphics mode