This reads as you're turning the lock and holding for 5 seconds in the lock position.
As I understand it you need to (read as locking is turning CCW from 12) "lock" it 5 times for first no 5. So turn from 12 to 9 and return to 12 5 times. Then for the second number turn CW the required number of times (turn from 12 (the position of the key after the last turn back to 12) to 3). Then repeat first sequence but for third number and repeat second sequence but for fourth number.
This could explain the beeping and no result. Unless I'm reading wrong.

