To get into the castle, collect the rocks from the first screen after leaving the ferry by typing "SEARCH" then "GET ROCKS". When you get to the castles moat and see the drawbridge, type "CHUCK ROCK" and the drawbridge will open.