Concurrent avoidance of shocks by pigeons pecking a key