Handling keys in update instead of coroutines

Coroutines seems less reliable.
Integrated line scripts.