Erm... Um... Hmmm... Ok i got one

I lie in wait
in castle walls
you'll ring a bell
and run through many halls


What am I?