Clue: Part of boat or vessel keeps swinging both ways (5)
Answer: CABIN
Explanation: Part of boat or vessel keeps swinging both ways (5)
CAN ("vessel") "keeps" BI ("swinging both ways")