The only hotkey to know here is Shift! Hold Shift before releasing the timeline cursor to snap it to the nearest keyframe, second, or half-second. Hold Shift before releasing keyframes to snap them to the timeline cursor or nearest second, or half-second. That’s it!
Hold Shift while dragging the cursor to snap it to the nearest keyframe, second, or half-second once released.
Hold Shift while dragging keyframes to snap them to the cursor, nearest second, or half-second once released.