Clean keyboard exit in test suite