fixed space pressing logic