Random Riddle: My Yellow Head

Eating white is what I mostly do
If quick enough, a fruit and some things blue

When you see pink, sky blue, orange, or red
It would be wise to turn my yellow head

In a dark room with blue walls
I run from the ghosts that roam the halls

What am I?
 

Random Riddle: My Yellow Head