move functions for working with terminal to separate module
show current key number and total keys