Keywords vs Stereotypes

What’s the difference between << keyword >> and << stereotype >> ? In component diagram both looks the same but aren’t when ex. you want to hide one or another. what’s the reason of such logic?

For component the keyword is just part of the notation defined in UML specification (please ask OMG about why they design the notation in this way). In VP you can right click on the component and select Presentation Options > Show Component Options to control display the keyword or not.